package com.qianyu.project.web.controller.ww;

import com.qianyu.project.service.IBuildListMaintainService;
import com.qianyu.project.service.IBuildListMaintainSubService;
import com.qianyu.project.service.IOutputProgressFilloutService;
import com.qianyu.project.service.IOutputProgressFilloutSubService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author ww
 * @desc
 */
@RestController
@RequestMapping("/buildlistmaintain")
public class BuildListMaintainController {
    @Autowired
    IBuildListMaintainService iBuildListMaintainService;
    @Autowired
    IBuildListMaintainSubService iBuildListMaintainSubService;

    @PostMapping
    public Result save(@RequestBody Map<String,Object> map){
        iBuildListMaintainService.saveProgress(map);
        return ResultTool.success();
    }

    @PostMapping("/buildlistmaintainSub")
    public Result saveBeach(@RequestBody Map<String,String> o){
        iBuildListMaintainSubService.savebeach(o);
        return ResultTool.success();
    }

    @GetMapping
    public Result List(@RequestParam Map<String,String> params){
        return ResultTool.success(iBuildListMaintainService.List(params));
    }
}
